package com.auxgroup.smarthome.openapi.requestbody;

import java.util.ArrayList;
import java.util.List;

/**
 * 解绑
 * @Author: laiqiuhua.
 * @Date: 2017/7/31 17:14.
 */
public class UnbindDeviceBody {
    private List<Did> devices = new ArrayList<>();

    public List getDevices() {
        return devices;
    }

    private static class Did {
        public String getDid() {
            return did;
        }

        public void setDid(String did) {
            this.did = did;
        }

        private String did;

        public Did(String did) {
            this.did = did;
        }
    }

    /**
     * 解绑社会
     * @param dids
     * @return
     */
    public UnbindDeviceBody buildDidList(String... dids) {
        for(String did : dids) {
            this.devices.add(new Did(did));
        }
        return this;
    }

}
